using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace bdnt_pets_system_Entity
{
    [DataContract]
    public class Tbl_Department : INotifyPropertyChanged
    {
        private System.Int32 _Id;
        [DataMember]
        public System.Int32 Id
        {
            get { return _Id; }
            set { _Id = value; }
        }
        private System.String _DeptNo;
        [DataMember]
        [Required(ErrorMessage = "*")]
        public System.String DeptNo
        {
            get { return _DeptNo; }
            set
            {
                if (_DeptNo != value)
                {
                    Validator.ValidateProperty(value,
                        new ValidationContext(this, null, null) { MemberName = "DeptNo" });
                    _DeptNo = value;
                    this.OnPropertyChanged("DeptNo");
                }
            }
        }
        private System.String _DeptName;
        [DataMember]
        [Required(ErrorMessage = "*")]
        public System.String DeptName
        {
            get { return _DeptName; }
            set
            {
                if (_DeptName != value)
                {
                    Validator.ValidateProperty(value,
                        new ValidationContext(this, null, null) { MemberName = "DeptName" });
                    _DeptName = value;
                    this.OnPropertyChanged("DeptName");
                }
            }
        }
        private System.Int32 _DeptType;
        [DataMember]
        [Required(ErrorMessage = "*")]
        public System.Int32 DeptType
        {
            get { return _DeptType; }
            set
            {
                if (_DeptType != value)
                {
                    Validator.ValidateProperty(value,
                        new ValidationContext(this, null, null) { MemberName = "DeptType" });
                    _DeptType = value;
                    this.OnPropertyChanged("DeptType");
                }
            }
        }
        private System.String _ManagerNo;
        [DataMember]
        [Required(ErrorMessage = "*")]
        public System.String ManagerNo
        {
            get { return _ManagerNo; }
            set
            {
                if (_ManagerNo != value)
                {
                    Validator.ValidateProperty(value,
                        new ValidationContext(this, null, null) { MemberName = "ManagerNo" });
                    _ManagerNo = value;
                    this.OnPropertyChanged("ManagerNo");
                }
            }
        }
        private System.String _Remark;
        [DataMember]
        public System.String Remark
        {
            get { return _Remark; }
            set { _Remark = value; }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
    }
}


